import { http } from '../utils/http'
import type { HouseDetailsPage } from '/@/types/house'
import type { PageParams ,PageResult} from '/@/types/global'
export const insertMyFavorites = (contractId : number) => {
	return http({

		method: 'POST',
		url: `/app/myfavorites/${contractId}`
	})
};
export const deleteMyFavorites = (contractId : number) => {
	return http({
		method: 'DELETE',
		url: `/app/myfavorites/${contractId}`
	})
};

export const getMyFavorites = (data?: PageParams) => {
	return http<PageResult<HouseDetailsPage[]>>({
		method: 'POST',
		url: `/app/myfavorites/page`,
		data
	})
};